package org.apache.commons.pool2.proxy;

import org.apache.commons.pool2.UsageTracking;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * 类的描述
 *
 * @author ztkool
 * @version v
 */
class JdkProxyHandler<T> extends BaseProxyHandler<T> implements InvocationHandler {

    JdkProxyHandler(T pooledObject, UsageTracking<T> usageTracking) {
        super(pooledObject, usageTracking);
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return this.doInvoke(method, args);
    }

}
